﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="TMSList.aspx.cs" Inherits="DotNETX.GIS.Web.TMSList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>TMS服务列表</title>
    <script type="text/javascript">
        jQuery(function () {
            $('#dialog').dialog({
                title: "TMS服务",
                modal: true,
                autoOpen: false,
                width: 600,
                height: 400
            });
            $('li.select').removeClass("select");
            $('#i_tmslist').addClass("select");

        });
        function showTmsService(src, title) {
            $('#tmsserviceframe').attr('src', src);
            $('#dialog').dialog('option', 'title', title);
            $('#dialog').dialog('open');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
        <table width="100%" cellpadding="4">
            <tr style=" background-color:#a00; height:20px;">
                <th width="20%" align="left">服务名</th>
                <th align="left">服务地址</th>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
            <tr><td><%#Eval("Title") %></td><td><a href="javascript:showTmsService('<%#Eval("Href") %>','<%#Eval("Title") %>')" title="" target="_self"><%#Eval("Href") %></a></td></tr>
    </ItemTemplate>
    <AlternatingItemTemplate>
            <tr style=" background-color: #ddd;"><td><%#Eval("Title") %></td><td><a href="javascript:showTmsService('<%#Eval("Href") %>','<%#Eval("Title") %>')" title="" target="_self"><%#Eval("Href") %></a></td></tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
    </asp:Repeater>
    <div id="dialog">
        <iframe id="tmsserviceframe" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>
    </div>
</asp:Content>
